#pragma once

#include "color.h"

class Frame
{
    private:
        int    _w;
        int    _h;
        double _t;
        Color* pixels;

    public:
        Frame();
        Frame( int w, int h, double t );
        virtual ~Frame();
        void init( int w, int h, double t );
        void setPixel( int i, int j, const Color& color );
        void save( const std::string& fileName );

        int w() const;
        int h() const;
        double t() const;
};
